xen/iommu: arm: Use p2m_ipa_bits as stage2 input size
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Fri, 8 May 2015 07:10:10 +0000 (17:10 +1000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 13 May 2015 13:49:43 +0000 (14:49 +0100)
commit3de112bcac21daecf42c2cdaaef7c5b8e21489d5
tree6196a5fd41edbb5a8a74eb956d1b19aa10a4c66f
parentcb493c714190216a86a81f7748b4608343576b6a
xen/iommu: arm: Use p2m_ipa_bits as stage2 input size

The Stage2 input-size must match what the CPU uses because
the SMMU and the CPU share page-tables.

Test that the SMMU supports the P2M IPA bit size, use it if
supported or bail out if not.

Reviewed-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/drivers/passthrough/arm/smmu.c